
<script type="text/javascript"
	src="js/group.js?r={[$smarty.now]}"></script>
	
<table>
	<tr align="center">
		<th></th>
		<th width="40">序号</th>
		<th>{[if $groupby ne '']} {[$groupby]} {[else]} 分类 {[/if]}</th>
		<th>数值</th>
		<th>百分比</th>
		<th width="40%">图形</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td><input type="checkbox" class="check" name="c_{[$no]}" value="{[$no]}"></td>
		<td>{[$no]}</td>
		<td>{[$item.a]}</td>
		<td>{[if $r3 neq '-']}{[$item.c|money]}{[else]}{[$item.c|money]}{[/if]}</td>
		<td>{[$item.p]}</td>
		
		<td align="left"><div style="background: red; width: {[$item.p]}; float:left;">&nbsp; </div><div style="margin-left:{[$item.p]}">&nbsp;{[$item.p]}</div></td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td colspan="3"></td>
		<td>{[$total|money]}</td>
		<td colspan="2"></td>
	</tr>
</table>
